package com.saascloud.log.config;

import com.saascloud.log.core.LogAspect;
import com.saascloud.core.SessionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;

/**
 * @Author: liangxu
 * @Contact: one_dream@aliyun.com
 * @Date: 2022/5/19 23:30
 * @Version: 1.0
 * @Description:
 */
public class LogAutoConfiguration {

    @Bean
    public LogAspect logAspect(@Autowired(required = false) SessionContext sessionContext) {
        return new LogAspect(sessionContext);
    }
}
